﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Jiekou
{
    class Program
    {
        static void Main(string[] args)
        {
            //显式
            Xianshi xianshi = new Xianshi();
            IStudentData Time = xianshi;
            Time.Boy = "阿右";
            Time.Girl = "小刘";
            xianshi.Addition = "Where Are You";
            Console.WriteLine("这里是:{0}和{1}啊！", Time.Boy, Time.Girl);
            Console.WriteLine(xianshi.Addition);
            Time.one();
            //隐式
            Yinshi yinshi = new Yinshi();
            IStudentData Bay = yinshi;
            yinshi.Boy = "阿陈";
            yinshi.Girl = "小张";
            yinshi.GuShi = "人间忽晚，山河已秋";
            Console.WriteLine("这里是:{0}和{1}啊！", yinshi.Boy, yinshi.Girl);
            Console.WriteLine(yinshi.GuShi);
            yinshi.one();
        }
    }
}
